package com.example.swagger.entity;

import lombok.Data;

import java.sql.Date;

@Data
public class User {//在entity包下创建User实体类（实体类中的对象对应数据库表中的字段数据）

    private Integer id;

    private Integer age;

    private boolean sex;

    public String getTelephone() {
        return telephone;
    }

    public void setTelephone(String telephone) {
        this.telephone = telephone;
    }

    private String telephone;

    private float balance;

    private String username;
    private String pwd;
    private Date regTime;
    private String roleID;
    private String phone;
    private String address;
    private String userRoleName;

    public String getRoleID() {
        return roleID;
    }

    public void setRoleID(String roleID) {
        this.roleID = roleID;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getUserRoleName() {
        return userRoleName;
    }

    public void setUserRoleName(String userRoleName) {
        this.userRoleName = userRoleName;
    }

    public float getBalance() {
        return balance;
    }

    public void setBalance(float balance) {
        this.balance = balance;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public boolean isSex() {
        return sex;
    }

    public void setSex(boolean sex) {
        this.sex = sex;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public Date getRegTime() {
        return regTime;
    }

    public void setRegTime(Date regTime) {
        this.regTime = regTime;
    }


    @Override
    public String toString() {
        return "User{" +
                "用户id=" + id +
                ", userName='" + username + '\'' +
                ", passWord='" + pwd + '\'' +
                ", sex='" + sex + '\'' +
                ", regTime='" + regTime + '\'' +
                ", age='" + age + '\'' +
                '}';
    }

}
